home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
5
/
SFF_SOUR
/
INIT.C
next >
Wrap
C/C++ Source or Header
|
1992-07-19
|
478b
|
21 lines
#include <MacHeaders>
/*
This wonderful little piece of code is copied right from the THINK C demo 'Bullseye'.
It initialises all the Macintosh managers so the machine wont bomb when the app is
run. There's no guarantee that all the managers are represented here, but I think
there's all I'll ever need.
*/
void InitMacintosh(void)
{
InitGraf(&thePort);
InitFonts();
FlushEvents(everyEvent, 0);
InitWindows();
InitMenus();
TEInit();
InitDialogs(0L);
InitCursor();
}